package com.tt.mapper;

import com.tt.entity.po.EnumDepartmentSpecific;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TP
 * @since 2022-10-26 10:59:16
 */
@Mapper
public interface EnumDepartmentSpecificMapper extends BaseMapper<EnumDepartmentSpecific> {

    /**
     * 小部门的pIds
     */
    @Select("select count(p_id) from enum_department_specific where p_id = #{pId}")
    Integer getDepartmentPId(@Param("pId") Integer pId);
}
